package com.opensource.baodaoimpl.controller;

import com.opensource.datamodel.dto.IndexBaseInfoDto;
import com.opensource.datamodel.service.IndexBaseInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wzh
 * @date 2024/5/6
 * @apiNote
 */
@RequestMapping("/test")
@RestController
public class controller {
    @GetMapping
    public String d(){
        return "ok";
    }

    @Autowired
    private IndexBaseInfoService indexBaseInfoService;
    @GetMapping("/demo")
    public IndexBaseInfoDto process(){
        return indexBaseInfoService.queryPlatIndexBaseInfo();
    }
}
